﻿using ChongJu.ModelManager.Rating;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;

namespace ChoJu.Converters
{
    public class BatchStatusConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var status = value as BatchEnum?;
            switch (status)
            {
                case BatchEnum.Init: return "初始化";
                case BatchEnum.Create: return "创建";
                case BatchEnum.Rating: return "分拣中";
                case BatchEnum.End: return "分拣结束";
                case BatchEnum.Submit: return "已提交";
                default:return "未知";
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
